import request from '@/util/request'
/* 
    获取当前用户选取的菜品
*/
const API:string = '/dishes-service'
export const getCartByToken = (token:string)=>{
    return request({
        url: API + '/cart',
        method: 'GET',
        params:{
            token
        }
    })
}

/* 
    添加或者修改菜品数量
*/
export const addCart = (data:CartDTO)=>{
    return request({
        url: API + '/cart',
        method:'POST',
        data
    })
}
